package ZRH;

public class zrh03 {
    public static void main(String[] args) {
        getMax(1.2, 2.3);
        getMax(1, 2);
    }

    public static void getMax(int a, int b) {
        //比较大小
        int max = a > b ? a : b;
        System.out.println(max);
    }

    public static void getMax(double a, double b) {
        //比较大小
        double max = a > b ? a : b;
        System.out.println(max);
    }
}
